<div id="inline4" style="width:300px;">
<form action="index.php/schedule/insert/" method="post" name="myform">
  <h2><span>详细数据</span></h2>
        <table class="table_g">
        	<tr><td class="name">日程标题：</td><td>&nbsp;</td><td><input style="width:207px;" type="text" name="subject" ></input></td></tr>
            <tr>
                <td class="name">重要程度：</td>
                <td>&nbsp;</td>
                <td>
                    <select name="importance">
                      <option class="option_bg1" value="普通" selected="selected">普通</option>
                      <option class="option_bg2" value="重要" >重要</option>
                      <option class="option_bg3" value="非常重要" >非常重要</option>
                  </select>
                </td>
			</tr>
        	<tr><td valign="top" class="name">内容：</td><td>&nbsp;</td><td><textarea style=" width:207px;  height:60px; line-height:20px; font-size:12px;" name="content"></textarea></td></tr>
            <tr><td colspan="3"></td></tr>
			<tr>
                <td class="name">状态：</td>
                <td>&nbsp;</td>
                <td>
               	  <select name="status">
                        <option value="未开始" >未开始</option>
                        <option value="执行中" >执行中</option>
                        <option value="完成" >完成</option>
                  </select>
                </td>
            </tr>
            <?php if($show_remind):?>
            <tr>
                <td class="name">执行时间：</td>
                <td>&nbsp;</td>
                <td>
                 <input type="text"  style="background:url(images/calendar.gif) right 2px no-repeat; height:17px; line-height:17px;" name="show_execution_time" class="datepicker"></input> 
                </td>
            </tr>
			<?php endif;?>
			<?php if(!$show_remind):?>
            <tr>
                <td class="name">提前提醒：</td>
                <td>&nbsp;</td>
                <td>
               	  <select name="advance_date" id="advance_date">
               	    <?php for($i=1;$i<=30;$i++){?>
               	      <option value="<?= $i?>" <?php if($i == 3){ ?>selected='selected'<?php } ?>><?= $i?>天</option>
               	    <?php }?>
                  </select>
                </td>
            </tr>
    		<?php endif;?>
    		<?php if($show_remind):?>
    			<tr>
                <td class="name">提前提醒：</td>
                <td>&nbsp;</td>
                <td>
               	  <select name="advance_date" id="advance_date">
               	    <?php for($i=1;$i<=30;$i++){?>
               	      <option value="<?= $i?>" <?php if($i == 3){ ?>selected='selected'<?php } ?>><?= $i?>天</option>
               	    <?php }?>
                  </select>
                </td>
            </tr>
    		<?php endif;?>
            <tr><td class="3">&nbsp;</td></tr>
            <tr class="sub">
              <td colspan="3"><input type="submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" /></td>
            </tr>
            <tr><td align="right"></td><td>&nbsp;</td></tr>
        </table>
        <input name="execution_time" type="hidden" value="<?= $day?>" />
        <input name="customer_id" type="hidden" value="<?= $customer_id?>" />
</div>
</form>

<script type="text/javascript">
$(function() {
		$( ".datepicker" ).datepicker();
});
</script>
